home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
BASIC
/
LIB
/
EVENTSHELL
/
DOCS
/
Memory
< prev
next >
Wrap
Text File
|
1996-05-18
|
4KB
|
152 lines
PROCshell_HeapBlockReturn()
=> int address of heap block
Releases the given heap block, returning memory to
the free pool.
--------------------------------------------------------
PROCshell_HeapBlockInit()
=> None
--------------------------------------------------------
FNshell_HeapBlockExtend()
=> int address of heap block
int amount to increase or decrease block size by
(-ve to decrease)
<= int address of heap block
Increases or decreases the size of the given heap block
which must have been allocated with FNshell_HeapBlockFetch.
Note that the heap block may be moved to make it fit so you
should always use the returned value for the heap block
address after this call.
--------------------------------------------------------
FNshell_HeapBlockFetch()
=> int size of block to fetch from heap
<= int address of heapblock allocated
Returns address of heapblock or causes an "Out
of memory" error if the block cannot be
allocated.
--------------------------------------------------------
FNshell_HeapBlockInfo()
=> int address of heap block
<= int size of heap block (Note that this
is larger than the size requested
with FNshell_HeapBlockFetch)
--------------------------------------------------------
PROCshell_HeapManagerInit
=> str path to directory containing the
'heapcode' file
int address of heap manager workspace
This routine must be called before PROCshell_Init.
--------------------------------------------------------
FNshell_HeapBlockExists()
=> int address to check
<= bool TRUE or FALSE
This routine returns TRUE if a heapblock is present
at the specified address, FALSE otherwise.
--------------------------------------------------------
PROCshell_MemFill()
=> int start address
int number of bytes
int byte value to fill with
--------------------------------------------------------
FNshell_HeapBlockExtendMid()
=> int address of heap block
int amount to increase or decrease block size by
(-ve to decrease)
int offset at which to extend block
<= int address of heap block
Increases or decreases the size of the given heap block
which must have been allocated with <FNshell_HeapBlockFetch>.
Note that the heap block may be moved to make it fit so you
should always use the returned value for the heap block
address after this call.
--------------------------------------------------------
FNshell_MemLib_GetPageSize
=> None
<= int current memory page size
Memory is claimed from RiscOS in page sized chunks when all
the free space has been used. Different computers with
different amounts of RAM have different page sizes.
--------------------------------------------------------
FNshell_MemLib_GetShellDynamicAreaNr
=> None
<= int number of dynamic area (-1 if no dynamic
area has been defined)
This dynamic area is created by EvntShell when your
application starts up, providing the application is
running on a Risc PC or better. It will be used by the
new memory claiming routines when I've written them.
--------------------------------------------------------
FNshell_MemLib_GetShellDynamicAreaSize
=> None
<= int size of EvntShell's dynamic workspace
area (-1 if no area defined)
This area will be used by the new memory claiming routines
when I've written them.
--------------------------------------------------------
FNshell_MemLib_DynamicAreaAvailable
=> None
<= bool TRUE if dynamic memory areas are
available, FALSE otherwise
--------------------------------------------------------
FNshell_MemLib_GetShellDynamicTotalFree
=> None
<= int the total amount of ram currently
available in EvntShell's dynamic
memory workspace
--------------------------------------------------------
FNshell_MemLib_GetShellDynamicNrBlocks
=> None
<= int number of heapblocks claimed in
in EvntShell's dynamic memory
workspace
--------------------------------------------------------